<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/menu.js"></script>
</head>
<body>
<%--此处必须设计为双标签,否则不能作为容器储存数据--%>
<table id="menu_grid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="add()">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="del()">删除</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="reload()">刷新</a>
</div>
<%--弹窗按键--%>
<div id="form_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>
</div>
<%--新增,编辑 弹窗--%>
<div id="menu_dialog">
    <%--切记提交表单的方式--%>
    <form id="menu_form" method="post">
        <input type="hidden" id="menuId" name="id"/>
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>父类菜单:</td>
                <td>
                    <input name="parent.id" class="easyui-combobox"
                           data-options="valueField:'id',textField:'text',url:'/menu/getAll.do'">
                </td>
            </tr>
            <tr>
                <td>菜单名称:</td>
                <td>
                    <input name="text" class="easyui-textbox" >
                </td>
            </tr>
            <tr>
                <td>菜单地址:</td>
                <td>
                    <input name="url" class="easyui-textbox">
                </td>
            </tr>

        </table>
    </form>
</div>
</body>
</html>
